package com.example.emergencyattempt01.user;

import android.content.Context;
import android.content.SharedPreferences;

import static android.content.Context.MODE_PRIVATE;

public class Administrator extends  User{
    String userName;
    long uid;
    String password;
    String userType;
    String identity;
    String institute;
    private static User myself=new Administrator();

    public static User getInstance ()
    {
        return myself;
    }

    private Administrator() {
    }

    @Override
    public String getUserName() {
        return userName;
    }

    @Override
    public String getUserType() {
        return userType;
    }

    @Override
    public String getPassword() {
        return password;
    }

    @Override
    public long getUid() {
        return uid;
    }

    @Override
    public String getIdentity() {
        return identity;
    }

    @Override
    public String getInstitute() {
        return institute;
    }

    @Override
    public int getOwnBooks() {
        return 0;
    }

    @Override
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }


    @Override
    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public void setOwnBooks(int ownBooks) {
        // 啥也不做
    }

    @Override
    public void setUserType(String userType) {
        this.userType = userType;
    }

    @Override
    public void setIdentity(String identity) {
        this.identity = identity;
    }

    @Override
    public void setInstitute(String institute) {
        this.institute = institute;
    }

}
